package com.minova.demo.service;

import com.minova.demo.entity.TzProd;
import com.minova.demo.entity.TzProdComm;
import com.minova.demo.mapper.TzProdCommMapper;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 商品评论 服务类
 * </p>
 *
 * @author linrongji
 * @since 2019-12-23
 */
public interface ITzProdCommService extends IService<TzProdComm> {

	public int getGoodRate(int prodid);
	
	/**
	 * 分页查询
	 * 
	 * @param prod_name 商品名
	 * @param category_id 商品分类
	 * @param page 页数
	 * @param size 每页数据数
	 * @return
	 */
	 IPage<TzProdComm> selectPageVo(String prodid, int page, int size,String byDesc);
	
}
